package com.odm.communitymanage.ui.mine.MyParkingPlace

import android.graphics.Color
import com.blankj.utilcode.util.SnackbarUtils
import com.blankj.utilcode.util.ToastUtils
import com.odm.communitymanage.R
import com.odm.communitymanage.base.BaseMVVMFragment
import kotlinx.android.synthetic.main.fragment_book_parking_place.*
import kotlinx.android.synthetic.main.fragment_parking_place_mine.*

/**
 * @description: 提交预约车位信息
 * @author: ODM
 * @date: 2020/4/17
 */
class PostBookingParkingFragment : BaseMVVMFragment() {


    override fun initViewModelObserve() {

    }

    override fun initViews() {
        btnBookParkingInfo?.setOnClickListener {
            val location =  etLocation_BookParking.text.toString()
            if(location == ""){
                ToastUtils.showLong("预约位置信息不能为空")
                return@setOnClickListener
            }
            showSuccessSnack(getString(R.string.post_success))
        }
    }

    override fun getLayoutId(): Int {
       return R.layout.fragment_book_parking_place
    }
}